package cn.catfish.mapper;

import cn.catfish.entity.Book;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface BookMapper {
    List<Book> getAllBooks();
    Book getBookById(int id);
    Book getBookName(String title);
    void updateBook(Book book);
    void insertBook(Book book);
}
